import request from "../utils/request";

export function getCollegedropDownList(parentId) {
  return request({
    url: `/user/getCollegeData/${parentId}`,
    method: 'get',
  })
}

export function getRoledropDownList() {
  return request({
    url: `/user/getRoleData`,
    method: 'get',
  })
}

export function geClassdropDownList(parentId) {
  return request({
    url: `/user/getClassData/${parentId}`,
    method: 'get',
  })
}


//修改密码
export function changePassword(param) {
  return request({
    url: `/user/editPassword`,
    method: 'post',
    data:param
  })
}


//修改头像
export function changeProfile(param) {
  return request({
    url: `/user/editHeadPortrait`,
    method: 'post',
    data:param
  })
}

//修改用户信息
export function changeUserInfo(param) {
  return request({
    url: `/user/editInfo`,
    method: 'post',
    data:param
  })
}
